#!/usr/bin/env python

# From Statements

from PySide.QtCore import *
from PySide.QtGui import *

# Import Statements
import sys

qt_app = QApplication(sys.argv)

# Main Application Class
class WombatApp(QMainWindow):
    def __init__(self):

        super(WombatApp, self).__init__()
        
        icon = QIcon("./images/wombat_32.ico")
        self.setMinimumSize(QSize(640, 480))
        self.setWindowTitle("Wombat")
        self.setWindowIcon(icon)

        self.textEdit = QTextEdit()
        self.setCentralWidget(self.textEdit)

        self.fileMenu = self.menuBar().addMenu("&File")

        self.fileToolbar = self.addToolBar("File")

        self.statusBar().showMessage("Ready")

    def run(self):
        self.show()
        qt_app.exec_()

app = WombatApp()
icon = QIcon("./images/wombat_32.ico")
app.setWindowIcon(icon)
app.run()

"""
# Import Statements
import wx
import WombatFrame

#
# Main Application Class      
# Launch MainWindow  
class WombatApp(wx.App):
    def OnInit(self):
        frame = WombatFrame.WombatFrame(None, "WomBaT Development Framework")
        self.SetTopWindow(frame)
        frame.SetIcon(wx.Icon("images/wombat_32.ico", wx.BITMAP_TYPE_ICO, 32, 32))
        frame.Show(True)
        frame.SetFocus()
        return True

# Create Main Application and Run It
app = WombatApp(redirect=False)
app.MainLoop()
"""
